package com.artezio.vacation.dao.hibernate.vacation;

import com.artezio.vacation.dao.VacationDAO;
import com.artezio.vacation.dao.hibernate.HibernateEntityDAOSupport;
import com.artezio.vacation.domain.Vacation;
import com.artezio.vacation.domain.VacationStatus;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConstructorArgumentValues;
import org.springframework.stereotype.Repository;

import java.beans.ConstructorProperties;
import java.util.List;

/**
 * Hibernate implementation of the vacation dao.
 */
@Repository
public class VacationHibernateDAO extends HibernateEntityDAOSupport<Vacation> implements VacationDAO{

    @Autowired
    public VacationHibernateDAO(SessionFactory sessionFactory) {
        super(Vacation.class, sessionFactory);
    }

    @Override
    public List<Vacation> findByUser(long userId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public List<Vacation> findByStatus(VacationStatus status) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}



